package com.sanhuo.security.dao;

import com.sanhuo.security.entity.Permit;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.annotation.Mapper;
import com.sanhuo.triild.annotation.Select;

import java.util.List;

@Mapper
public interface PermitMapper extends BaseMapper<Permit> {


    @Select("select p.code name from role_permit pr join permit p on pr.permitId = p.id where pr.roleId = #{roleId} ")
    List<String> findByRole(String roleId);
}
